package org.feiye.studyday24;

import java.util.Calendar;

public class CalendatTest {
	public static void main(String[] args) {
		Calendar c = Calendar.getInstance();
		int i = c.get(Calendar.YEAR);
		int j = c.get(Calendar.MONTH);
		int k = c.get(Calendar.DAY_OF_WEEK);
		int l = c.get(Calendar.DATE);
		int m = c.get(Calendar.WEEK_OF_YEAR);
		int n = c.get(Calendar.DAY_OF_YEAR);
		System.out.println("今天是：" + i + "年");
		System.out.println("今天是：" + (j + 1) + "月");
		System.out.println("今天是：" + l + "号");
		System.out.println("今天是星期：" + k);
		System.out.println("这周是" + i + "年的第：" + m + "周");
		System.out.println("今天是" + i + "年的第：" + n + "天");

//		c.add(Calendar.DATE, 69);
//		System.out.println(c.getTime());
		c.roll(Calendar.DATE, 69);
		System.out.println(c.getTime());
	}
}
